{{ header }}{{ column_left }}
<div id="content">
  <div class="page-header">
    <div class="container-fluid">
      <div class="float-right">
        <button type="submit" form="form-manufacturer" data-toggle="tooltip" title="{{ button_save }}" class="btn btn-primary"><i class="fas fa-save"></i></button>
        <a href="{{ cancel }}" data-toggle="tooltip" title="{{ button_cancel }}" class="btn btn-light"><i class="fas fa-reply"></i></a></div>
      <h1>{{ heading_title }}</h1>
      <ol class="breadcrumb">
        {% for breadcrumb in breadcrumbs %}
          <li class="breadcrumb-item"><a href="{{ breadcrumb.href }}">{{ breadcrumb.text }}</a></li>
        {% endfor %}
      </ol>
    </div>
  </div>
  <div class="container-fluid"> {% if error_warning %}
      <div class="alert alert-danger alert-dismissible"><i class="fas fa-exclamation-circle"></i> {{ error_warning }}
        <button type="button" class="close" data-dismiss="alert">&times;</button>
      </div>
    {% endif %}
    <div class="card">
      <div class="card-header"><i class="fas fa-pencil-alt"></i> {{ text_form }}</div>
      <div class="card-body">
        <form action="{{ action }}" method="post" enctype="multipart/form-data" id="form-manufacturer">
          <ul class="nav nav-tabs">
            <li class="nav-item"><a href="#tab-general" data-toggle="tab" class="nav-link active">{{ tab_general }}</a></li>
            <li class="nav-item"><a href="#tab-seo" data-toggle="tab" class="nav-link">{{ tab_seo }}</a></li>
          </ul>
          <div class="tab-content">
            <div class="tab-pane active" id="tab-general">
              <div class="form-group row required">
                <label class="col-sm-2 col-form-label" for="input-name">{{ entry_name }}</label>
                <div class="col-sm-10">
                  <input type="text" name="name" value="{{ name }}" placeholder="{{ entry_name }}" id="input-name" class="form-control"/>
                  {% if error_name %}
                    <div class="invalid-tooltip">{{ error_name }}</div>
                  {% endif %}</div>
              </div>
			  <div class="form-group row">
				<label class="col-sm-2 col-form-label" for="input-description">{{ entry_description }}</label>
				<div class="col-sm-10">
				  <textarea name="description" placeholder="{{ entry_description }}" id="input-description" data-toggle="ckeditor" data-lang="{{ ckeditor }}" class="form-control">{{ description }}</textarea>
				</div>
			  </div>
			  <div class="form-group row required">
				<label class="col-sm-2 col-form-label" for="input-meta-title">{{ entry_meta_title }}</label>
				<div class="col-sm-10">
				  <input type="text" name="meta_title" value="{{ meta_title }}" placeholder="{{ entry_meta_title }}" id="input-meta-title" class="form-control"/>
				  {% if error_meta_title %}
					<div class="invalid-tooltip">{{ error_meta_title }}</div>
				  {% endif %}
				</div>
			  </div>
			  <div class="form-group row">
				<label class="col-sm-2 col-form-label" for="input-meta-description">{{ entry_meta_description }}</label>
				<div class="col-sm-10">
				  <textarea name="meta_description" rows="5" placeholder="{{ entry_meta_description }}" id="input-meta-description" class="form-control">{{ meta_description }}</textarea>
				</div>
			  </div>
			  <div class="form-group row">
				<label class="col-sm-2 col-form-label" for="input-meta-keyword">{{ entry_meta_keyword }}</label>
				<div class="col-sm-10">
				  <textarea name="meta_keyword" rows="5" placeholder="{{ entry_meta_keyword }}" id="input-meta-keyword" class="form-control">{{ meta_keyword }}</textarea>
				</div>
			  </div>
              <div class="form-group row">
                <label class="col-sm-2 col-form-label" for="input-store">{{ entry_store }}</label>
                <div class="col-sm-10">
                  <select name="store_id" id="input-store" class="form-control">
                    {% for store in stores %}
                      {% if store.store_id == store_id %}
                        <option value="{{ store.store_id }}" selected="selected">{{ store.name }}</option>
                      {% else %}
                        <option value="{{ store.store_id }}">{{ store.name }}</option>
                      {% endif %}
                    {% endfor %}
                  </select>
                </div>
              </div>
              <div class="form-group row">
                <label class="col-sm-2 col-form-label" for="input-image">{{ entry_image }}</label>
                <div class="col-sm-10">
                  <div class="card image">
                    <img src="{{ thumb }}" alt="" title="" id="thumb-image" data-placeholder="{{ placeholder }}" class="card-img-top"/> <input type="hidden" name="image" value="{{ image }}" id="input-image"/>
                    <div class="card-body">
                      <button type="button" data-toggle="image" data-target="input-image" data-thumb="thumb-image" class="btn btn-primary btn-sm btn-block"><i class="fas fa-pencil-alt"></i> {{ button_edit }}</button>
                      <button type="button" data-toggle="clear" data-target="input-image" data-thumb="thumb-image" class="btn btn-warning btn-sm btn-block"><i class="fas fa-trash-alt"></i> {{ button_clear }}</button>
                    </div>
                  </div>
                </div>
              </div>
              <div class="form-group row">
                <label class="col-sm-2 col-form-label" for="input-sort-order">{{ entry_sort_order }}</label>
                <div class="col-sm-10">
                  <input type="text" name="sort_order" value="{{ sort_order }}" placeholder="{{ entry_sort_order }}" id="input-sort-order" class="form-control"/>
                </div>
              </div>
            </div>
            <div class="tab-pane" id="tab-seo">
              <div class="form-group row">
				<label class="col-sm-2 col-form-label" for="input-seo-keyword">{{ entry_seo_keyword }}</label>
				<div class="col-sm-10">
				  <input type="text" name="seo_keyword" value="{{ seo_keyword }}" placeholder="{{ entry_seo_keyword }}" id="input-seo-keyword" class="form-control"/>
				  {% if error_keyword %}
                    <div class="invalid-tooltip">{{ error_keyword }}</div>
                  {% endif %}
				</div>
			  </div>
            </div>
          </div>
        </form>
      </div>
    </div>
  </div>
</div>

<script type="text/javascript"><!--
$('textarea[data-toggle=\'ckeditor\']').ckeditor();
//--></script>

{{ footer }}